#include "status_bar.h"
#include "ui_status_bar.h"
Status_bar::Status_bar(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Status_bar)
{
    ui->setupUi(this);

    InitUI();
}

Status_bar::~Status_bar()
{
    delete ui;
}

void Status_bar::InitUI()
{
    GlobalSignalMgr::get_instance()->attach(SignalType::SIG_SET_STATUS, this, SLOT(setLabel1_text(QString)));

}

void Status_bar::setLabel1_text(QString label_text)
{
    qInfo("sssssss");
    ui->lab1->setText(label_text);
    ui->lab1->show();
}
